﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Wedo.Recognition.Domain.Models;

namespace Wedo.Recognition.Domain.Mapping
{
    public class BankData_Mapping : EntityConfiguration<BankData>
    {
        public BankData_Mapping()
        {
            ToTable("BankData");
            
            Property(s => s.Currency).HasMaxLength(50).HasColumnType("varchar");
            Property(s => s.ReceiveDate).IsRequired().HasColumnType("datetime2");
            Property(s => s.BankCode).HasMaxLength(255).HasColumnType("nvarchar");
            Property(s => s.Assiginment).HasMaxLength(255).HasColumnType("varchar");
            Property(s => s.ReceiveType).IsRequired();

            Property(s => s.LCNumber).HasMaxLength(500).HasColumnType("nvarchar");
            Property(s => s.TradeAddionalComment).HasMaxLength(500).HasColumnType("nvarchar");
            Property(s => s.BankRemarkNum).HasColumnType("varchar");
            //Property(s => s.CheckedMan).HasColumnType("nvarchar");

            Property(s => s.AccountDate).IsOptional().HasColumnType("datetime2");
            Property(s => s.CustomerCode).HasMaxLength(50).HasColumnType("varchar");
            Property(s => s.CustomerName).HasMaxLength(50).HasColumnType("nvarchar");
            Property(s => s.ImportSAPUser).HasMaxLength(50).HasColumnType("nvarchar");
            Property(s => s.DocumentNo).HasMaxLength(50).HasColumnType("nvarchar");

            Property(s => s.FinanceCheckMan).HasMaxLength(50).HasColumnType("nvarchar");
            Property(s => s.Payer).HasMaxLength(100).HasColumnType("nvarchar");

        }

    }
}
